package com.bw.day03.adapter

import com.bw.day03.R
import com.bw.day03.room.Comment
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder

class CommentAdapter: BaseQuickAdapter<Comment, BaseViewHolder>(R.layout.item_comment) {
    override fun convert(
        holder: BaseViewHolder,
        item: Comment
    ) {
        holder.setText(R.id.comment_name,item.name)
        holder.setText(R.id.comment_msg,item.msg)
        holder.setText(R.id.comment_time,item.time)
    }

}